package com.googlecode.spreadit.bean;

import java.io.Serializable;
import java.util.List;

import com.googlecode.spreadit.matching.MatchExpression;

/**
 * A {@link SpreadRule} identifies the target of the information and the
 * condition under which the rule is executed.
 * 
 * @author Markus L. Dechert (markus.dechert@googlemail.com)
 * 
 */
public class SpreadRule implements Serializable {

	/**
	 * Generated serialization ID.
	 */
	private static final long serialVersionUID = -6629327709358815083L;

	private List<String> targetReceivers;
	private SpreadChannel targetChannel;
	private MatchExpression matchIf;

	public List<String> getTargetReceivers() {
		return targetReceivers;
	}

	public void setTargetReceivers(List<String> targetReceivers) {
		this.targetReceivers = targetReceivers;
	}

	public SpreadChannel getTargetChannel() {
		return targetChannel;
	}

	public void setTargetChannel(SpreadChannel targetChannel) {
		this.targetChannel = targetChannel;
	}

	public MatchExpression getMatchIf() {
		return matchIf;
	}

	public void setMatchIf(MatchExpression matchIf) {
		this.matchIf = matchIf;
	}
}
